package org.breezeiot.protodecode.enums;

public enum ObjectTypeEnum {
    OBJ_UNKOWN("0", "未知"),
    OBJ_PROVINCE("1", "省"),
    OBJ_CITY("2", "市"),
    OBJ_DISTRICT("3", "区县"),

    OBJ_ENTERPRISE("11", "企业 "),

    OBJ_SUBEU("12", "次级单元"),
    OBJ_BUILDING_GROUP("13", "建筑群"),
    OBJ_BUILDING("14", "建筑"),
    OBJ_FLOOR("15", "楼层"),
    OBJ_ROOM("16", "房间"),

    OBJ_RTU("22", "采集终端"),
    OBJ_POINT("23", "计量点"),
    OBJ_DEVICE("24", "监测设备"),

    OBJ_STATION("42", "配变电站"),
    OBJ_DIST_BOX("43", "配电柜"),

    OBJ_FEEDER("51", "进线"),
    OBJ_TRANSFORMER("52", "变压器"),
    OBJ_BRANCH("53", "支路"),


    OBJ_DEPT("101", "部门"),
    OBJ_CLASSIFY("102", "分类"),
    OBJ_BALANCE("103", "平衡对象"),

    OBJ_PREPAY_CUSTOMER("201", "费控用户"),
    //用能单元包含：12/13/14/15/16/42,43
    OBJ_EUU("1012", "用能单元");

    private final String value;
    private final String text;

    ObjectTypeEnum(String value, String text) {
        this.value = value;
        this.text = text;
    }

    public String getValue() {
        return value;
    }

    public String getText() {
        return text;
    }

    public int getIntValue() {
        return Integer.parseInt(value);
    }

    public short getShortValue() {
        return Short.parseShort(value);
    }
}
